<?php

namespace App\Controllers;

use CodeIgniter\Config\Database;

class Home extends BaseController
{
    public function index(): string
    {
		
		//$db = Database::connect();
		$db = \Config\Database::connect();


		//$builder = $db->table('l7_defense_ifname');
		return "hellword\n";
        //return view('welcome_message');
    }
	function set_state($id=1,$state=0)
	{
		$result = array();
		$result['id'] = $id;
		$result['state'] = $state;
		echo json_encode($result);
	}
}
